<h1>Courses Taken</h1>

	<?php 
		$hidden = array(
			'stdno' => $stdno,
			'year' => $year,
			'sem' => $sem,
		);
		echo form_open('encoder/addSubjectsTaken', '', $hidden);
	?>
	
	<table>	
		<tr>
			<td width="140px"><?php echo form_label('Student Number:');?></td>
			<td>
				<?php echo $stdno; ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px"><?php echo form_label('Year:');?></td>
			<td>
				<?php echo $year; ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px"><?php echo form_label('Semester/Summer:');?></td>
			<td>
				<?php echo $sem; ?>
			</td>
		</tr>
	</table>
	<br/>
	<b>Note: Atleast one(1) field is required to be filled up.</b>
	</br><br/>
	<table>
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course1');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course1',
						'id'          => 'course1',
						'value'       => set_value('course1'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade1');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade1',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course1'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course2');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course2',
						'id'          => 'course2',
						'value'       => set_value('course2'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade2');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade2',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course2'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course3');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course3',
						'id'          => 'course3',
						'value'       => set_value('course3'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade3');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade3',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course3'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course4');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course4',
						'id'          => 'course4',
						'value'       => set_value('course4'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade4');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade4',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course4'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course5');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course5',
						'id'          => 'course5',
						'value'       => set_value('course5'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade5');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade5',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course5'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course6');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course6',
						'id'          => 'course6',
						'value'       => set_value('course6'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade6');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade6',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course6'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Course Number: ', 'course7');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'course7',
						'id'          => 'course7',
						'value'       => set_value('course7'),
						'maxlength'   => '10',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_label('Grade: ', 'grade7');?>
			</td>
			<td>
				<?php
					$options = array(
								'1.00' => '1.00',
								'1.25' => '1.25',
								'1.50' => '1.50',
								'1.75' => '1.75',
								'2.00' => '2.00',
								'2.25' => '2.25',
								'2.50' => '2.50',
								'2.75' => '2.75',
								'3.00' => '3.00',
								'4.00' => '4.00',
								'5.00' => '5.00',
							);
					echo form_dropdown('grade7',$options);
				?>
			</td>
			<td>
				<?php echo form_error('course7'); ?>
			</td>
		</tr>
	</table>
	</br>
	<table>
		<tr>
			<td width="140px">
				<?php echo form_label('GWA: ', 'gwa');?>
			</td>
			<td>
				<?php 
					$data = array(
						'name'        => 'gwa',
						'id'          => 'gwa',
						'value'       => set_value('gwa'),
						'maxlength'   => '4',
						'size'        => '12',
						'style'       => 'width:80%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_error('gwa'); ?>
			</td>
		</tr>
		
		<tr>
			<td width="140px">
				<?php echo form_label('Standing: ', 'standing');?>
			</td>
			<td>
				<?php
					$options = array(
								'Good' => 'Good',
								'Warning' => 'Warning',
								'Probation' => 'Probation',
								'Dismissed' => 'Dismissed',
							);
					echo form_dropdown('standing',$options);
				?>
			</td>
		</tr>
	</table>

<!-- Submit Button -->
<?php
	$data = array(
		'value' => 'Submit',
	); 
	echo form_submit($data);
?>
<?php echo form_close(); ?>
	
<!-- Cancel Button -->
<?php 
	echo form_open('encoder/view');
		
	$data = array(
		'value' => 'Cancel',
	); 
	echo form_submit($data);
	echo form_close();
?>
<?php echo anchor('encoder/index','Back to Home Page');?> </br>
<?php echo anchor('encoder/logout','Logout');?>